package com.whf.service;

import com.whf.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by Administrator on 2018/7/13 0013.
 */
public interface OrderService {
    //创建新的订单
    OrderDTO create(OrderDTO orderDTO);
    //查询一个订单
    OrderDTO findOne(String orderId);
    //查询订单列表
    Page<OrderDTO> findAll(String buyerOpenId,Pageable pageable);
    //取消订单
    OrderDTO cancel(OrderDTO orderDTO);
    //完结订单
    OrderDTO finish(OrderDTO orderDTO);
    //支付完成
    OrderDTO paid(OrderDTO orderDTO);
    //查询所有订单列表
    Page<OrderDTO> findAllList(Pageable pageable);
}
